package cn.lbd.kill.model.mapper;

import cn.lbd.kill.model.entity.User;
import cn.lbd.kill.model.entity.UserExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int batchUpdate(@Param("recordList") List<User> recordList);

    int batchInsert(@Param("recordList") List<User> recordList);

    int batchDelete(@Param("ids") Integer[] ids);

    User selectByUserName(String username);

    int register(User user);
}